package com.ruoyi.owner.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 业主管理对象 cm_owner
 *
 * @author HuangRong
 * @date 2023-05-12
 */
public class Owner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long ownerId;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String realName;

    /** 性别：0男1女 */
    @Excel(name = "性别：0男1女")
    private String gender;

    /** 身份证号码 */
    @Excel(name = "身份证号码")
    private String idCard;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phoneNumber;

    /** 微信openid */
    @Excel(name = "微信openid")
    private String openid;

    /** 微信号 */
    @Excel(name = "微信号")
    private String wecharId;

    /** 出生年月，由身份证号计算得出 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生年月，由身份证号计算得出", width = 30, dateFormat = "yyyy-MM-dd")
    private Date bornDate;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** 个性签名 */
    @Excel(name = "个性签名")
    private String sign;

    /** 状态：0正常1禁用 */
    @Excel(name = "状态：0正常1禁用")
    private String status;

    /** 登陆密码 */
    @Excel(name = "登陆密码")
    private String password;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 删除标识0:正常2:删除 */
    private String delFlag;

    /** 人脸照片 */
    @Excel(name = "人脸照片")
    private String face;

    public void setOwnerId(Long ownerId)
    {
        this.ownerId = ownerId;
    }

    public Long getOwnerId()
    {
        return ownerId;
    }
    public void setNickname(String nickname)
    {
        this.nickname = nickname;
    }

    public String getNickname()
    {
        return nickname;
    }
    public void setRealName(String realName)
    {
        this.realName = realName;
    }

    public String getRealName()
    {
        return realName;
    }
    public void setGender(String gender)
    {
        this.gender = gender;
    }

    public String getGender()
    {
        return gender;
    }
    public void setIdCard(String idCard)
    {
        this.idCard = idCard;
    }

    public String getIdCard()
    {
        return idCard;
    }
    public void setPhoneNumber(String phoneNumber)
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber()
    {
        return phoneNumber;
    }
    public void setOpenid(String openid)
    {
        this.openid = openid;
    }

    public String getOpenid()
    {
        return openid;
    }
    public void setWecharId(String wecharId)
    {
        this.wecharId = wecharId;
    }

    public String getWecharId()
    {
        return wecharId;
    }
    public void setBornDate(Date bornDate)
    {
        this.bornDate = bornDate;
    }

    public Date getBornDate()
    {
        return bornDate;
    }
    public void setAvatar(String avatar)
    {
        this.avatar = avatar;
    }

    public String getAvatar()
    {
        return avatar;
    }
    public void setSign(String sign)
    {
        this.sign = sign;
    }

    public String getSign()
    {
        return sign;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }
    public void setSort(Long sort)
    {
        this.sort = sort;
    }

    public Long getSort()
    {
        return sort;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setFace(String face)
    {
        this.face = face;
    }

    public String getFace()
    {
        return face;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("ownerId", getOwnerId())
                .append("nickname", getNickname())
                .append("realName", getRealName())
                .append("gender", getGender())
                .append("idCard", getIdCard())
                .append("phoneNumber", getPhoneNumber())
                .append("openid", getOpenid())
                .append("wecharId", getWecharId())
                .append("bornDate", getBornDate())
                .append("avatar", getAvatar())
                .append("sign", getSign())
                .append("status", getStatus())
                .append("password", getPassword())
                .append("sort", getSort())
                .append("remark", getRemark())
                .append("delFlag", getDelFlag())
                .append("face", getFace())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
